package chapter_8.coll;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test1 {
    public static void main(String[] args) {
        HashMap<String,String> map1 = new HashMap<>();
        map1.put("001","李小龙");

        HashMap<String,String> map2 = new HashMap<>();
        map2.put("001","泰森");

        List<Map<String,String>> list = new ArrayList<>();
        list.add(map1);
        list.add(map2);

        for (Map<String, String> map : list) {
            for (Map.Entry<String, String> entry : map.entrySet()) {
                System.out.println(entry.getKey()+"=" + entry.getValue());
            }
        }
    }
}
